package com.rollawizards.arena
{
    import org.flashdevelop.utils.FlashConnect;

    public class Arena
    {
        private var players:Vector.<Player>;

        public function Arena()
        {
            players = new Vector.<Player>();
        }

        public function createPlayer():Player
        {
            var player:Player = new Player();
            players.push(player);
            return player;
        }
        
        public function step():void
        {
            FlashConnect.trace("Arena step");
            
            for (var i:int = 0; i < players.length; ++i)
            {
                players[i].step();
            }
        }
    }
}